﻿using Models;
using Models.DTO;
using System;
using System.Collections.Generic;
using System.Text;

namespace IBLL
{
    /// <summary>
    /// 订单详情表业务逻辑层--接口
    /// </summary>
    public interface IOrderDetaIlsBLL
    {
        /// <summary>
        /// 获取订单详情列表
        /// </summary>
        /// <param name="page">第几页</param>
        /// <param name="limit">每页几条数据</param>
        /// <param name="orderInfoId">订单id</param>
        /// <param name="count">数据总数</param>
        /// <returns></returns>
        List<GetOrderDetaIlsDTO> GetOrderDetaIls(int page, int limit, string orderInfoId, out int count);

        /// <summary>
        /// 新增订单详情的接口
        /// </summary>
        /// <param name="orderDetaIls">新增的菜单实体</param>
        /// <param name="msg">返回的信息</param>
        /// <returns></returns>
        bool CreateOrderDetaIls(OrderDetaIls  orderDetaIl, out string msg);

        /// <summary>
        /// 更新订单详情信息的接口
        /// </summary>
        /// <param name="orderDetaIls">要更新的实体</param>
        /// <param name="msg">返回的描述信息</param>
        /// <returns></returns>
        bool UpdateOrderDetaIls(OrderDetaIls orderDetaIls, out string msg);

        /// <summary>
        /// 订单详情软删除的接口
        /// </summary>
        /// <param name="id">被删除的菜单id</param>
        /// <param name="orderDetaIls">新增的菜单实体</param>
        /// <param name="msg">返回的信息</param>
        /// <returns></returns>
        bool DeleteOrderDetaIls(string id);

        /// <summary>
        /// 订单详情批量软删除的接口
        /// </summary>
        /// <param name="ids">被删除的订单详情id集合</param>
        /// <returns></returns>
        bool DeleteOrderDetaIlss(List<string> ids);
    }
}
